package agenda.dao;

import java.sql.SQLException;
import java.util.ArrayList;

import agenda.modelo.Contacto;

public interface InterfazContactoDAO {

	public void agregarContacto(Contacto contacto) throws SQLException;
	
	public boolean eliminarContacto(int IdContacto) throws SQLException;
	
	public void modificarContacto(Contacto contacto) throws SQLException;
	
	public ArrayList<Contacto> listaDeContactos() throws SQLException;

	public ArrayList<Contacto> buscarContactosPorNombre(String palabra) throws SQLException;

	public Contacto consultarContacto(int idContacto) throws SQLException;
	
	public Contacto[] toArray() throws SQLException;

	public String[][] buscarContactosPorNombreToMatriz(String palabra) throws SQLException;

	public default void cierraConexion() throws SQLException{}

	public int insertaLote(ArrayList<Contacto> lista) throws SQLException;

}